package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName:
 * @Description:
 * @version: v1.1.0
 * @author: shuaiqin
 * @date: 2021/9/20-11:17
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2021/9/20          shuaiqin          v1.1.0               修改原因
 */
@Mapper
public interface OrderDao {
    /**
     * 1.新建订单
     */
    void create(Order order);
    /**
     * 2.修改订单状态从 0 改为 1
     */
    void update(@Param("userId")Long userId,@Param("status")Integer status);
}
